<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Travel Dream - Home</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<div id="maincontainer">
<h:form>
<p:commandLink style="float: right;"  action="#{logoutBean.logout}" value="Logout" />
</h:form>
  <div id="menu">
    <div>
    	<h:form>
    	<ul>
    		<li><a href="home.xhtml">HOME</a></li>
    		<li>
				<p:commandLink id="tutti_i_viaggi" action="#{PackageMgr.goToAllTravels()}" value="TUTTI I VIAGGI" />   
			</li>
    		<li>
				<p:commandLink id="profilo" action="#{UserMgr.getUserAndAddress()}" value="IL MIO PROFILO" />   
			</li>
    	</ul>
    	</h:form>
    </div>
  </div>
  <div id="right_column">
    <div id="destination">
      <h2>Pacchetti offerti</h2>
      <p><img src="images/photo1.jpg" alt="" width="85" height="85" /> <img src="images/photo2.jpg" alt="" width="85" height="85" /> <img src="images/photo3.jpg" alt="" width="85" height="85" /></p>
    </div>
    <div id="search">
      <div class="search_top"></div>
      <div class="search_mid" style="width: 281px">
        <h:form>
			<p:panelGrid columns="3">
				<f:facet name="header">
					Ricerca Pacchetto
				</f:facet>
				
				<p:selectBooleanCheckbox value="#{PackageMgr.nameCheck}" />  
				<h:outputLabel for="name" value="Nome del pacchetto: " />
				<p:inputText id="name" value="#{PackageMgr.pkgMgr.name}" label="name" />
				
				<p:selectBooleanCheckbox value="#{PackageMgr.cityCheck}" />  
				<h:outputLabel for="city" value="Destinazione: " />
				<p:inputText id="city" value="#{PackageMgr.pkgMgr.city}" label="city" />
				
				<p:selectBooleanCheckbox value="#{PackageMgr.dateCheck}" />  
				<h:outputLabel for="expirationDate" value="Nome del pacchetto: " />
				<p:calendar id="expirationDate" value="#{PackageMgr.pkgMgr.expirationDate}" mode="popup" label="departureDate" />
		
			</p:panelGrid>
				
			<h:commandButton value="Search" action="#{PackageMgr.search()}" />
				
	</h:form>

      </div>
      <div class="search_bot"></div>
    </div>
  </div>
  <div id="bot"></div>
</div>
</h:body>
</html>